package com.jfinal.plugin.activerecord;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import com.jfinal.plugin.activerecord.IAtom;

import com.eova.model.MetaObject;

public class IAtomImp implements IAtom{

	protected MetaObject object = null;
	protected List<Record> records = null;
	protected Map<String, Record> reMap = null;

	public IAtomImp(List<Record> records,MetaObject object) {
		this.object = object;
		this.records = records;

	}

	public IAtomImp(MetaObject object, Map<String, Record> reMap) {
		this.object = object;
		this.reMap = reMap;

	}

	/**
	 * Place codes here that need transaction support.
	 * 
	 * @return true if you want to commit the transaction otherwise roll back
	 *         transaction
	 */
	public boolean run() throws SQLException {
		return true;
	}

}
